const { createClient } = require("redis");
async function test() {
  const client = await createClient()
    .on("error", (err) => console.log("Redis Client Error", err))
    .connect();

  await client.set("key", "value");
  const value = await client.get("key");
  console.log(value);
  await client.disconnect();
}
test();
